﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CAUNetLogin.NetUtil.ReturnMessage;

namespace CAUNetLogin
{
    public partial class FlowForm : Form
    {
        public FlowForm(SucceedMessage succeedMsg)
        {
            InitializeComponent();
            labelUser.Text = succeedMsg.uid + " " + succeedMsg.NID;
            labelFlowRemained.Text = succeedMsg.flowRemained + "MB";
            labelflowUsed.Text = succeedMsg.flowUsed + "MB";
            labelBalance.Text = succeedMsg.balance + "元";
            labelTimeUsed.Text = succeedMsg.timeUsed + "Min";
            labelIPLast.Text = succeedMsg.lip;
            labelTimeLogout.Text = succeedMsg.etime;
            labelTimeLogin.Text = succeedMsg.stime;
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
